package com.henu.engineer.dao.mapper.cultivatingproject

import com.henu.engineer.dao.entity.cultivatingproject.GoalRequirement
import org.apache.ibatis.annotations.Mapper
import org.springframework.stereotype.Repository
import java.time.LocalDate

/**
 *
 * @author noexcept
 * @since 2021/8/10 14:50
 */
@Mapper
@Repository
interface GoalRequirementXmlMapper {

    fun insertSingle(goalRequirement: GoalRequirement): Boolean

    fun insertList(goalrequirementList: List<GoalRequirement>): Int

    fun deleteSingle(goalId: String, requirementId: String): Boolean

    // TODO: 2021/8/11 完善mapper文件

    fun selectByGoalList(goalIds: List<String>): List<GoalRequirement>
}